<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">












<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />






















<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=6.1.0" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.1.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.ico?v=6.1.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.ico?v=6.1.0">


  <link rel="mask-icon" href="/images/logo.svg?v=6.1.0" color="#222">









<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '6.1.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="更新日志    2018-04-27: 创建  2018-04-28: 添加cacti安装  2018-04-28: 添加图片   cacti 的安装预安装环境   属性 客户端 被监控端 cacti服务器     系统 Windows 10 Chrome CentOS 6.9 Apache虚拟主机   IP/MASK 192.168.1.119/24 192.168.1.125/24 192.1">
<meta name="keywords" content="Linux,cacti">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux监控——cacti">
<meta property="og:url" content="http://yoursite.com/cacti/index.html">
<meta property="og:site_name" content="胖勇の小窝">
<meta property="og:description" content="更新日志    2018-04-27: 创建  2018-04-28: 添加cacti安装  2018-04-28: 添加图片   cacti 的安装预安装环境   属性 客户端 被监控端 cacti服务器     系统 Windows 10 Chrome CentOS 6.9 Apache虚拟主机   IP/MASK 192.168.1.119/24 192.168.1.125/24 192.1">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://p7b7this6.bkt.clouddn.com/18-5-6/22155900.jpg">
<meta property="og:image" content="http://p7b7this6.bkt.clouddn.com/18-5-6/30607701.jpg">
<meta property="og:updated_time" content="2018-05-06T01:10:58.136Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Linux监控——cacti">
<meta name="twitter:description" content="更新日志    2018-04-27: 创建  2018-04-28: 添加cacti安装  2018-04-28: 添加图片   cacti 的安装预安装环境   属性 客户端 被监控端 cacti服务器     系统 Windows 10 Chrome CentOS 6.9 Apache虚拟主机   IP/MASK 192.168.1.119/24 192.168.1.125/24 192.1">
<meta name="twitter:image" content="http://p7b7this6.bkt.clouddn.com/18-5-6/22155900.jpg">






  <link rel="canonical" href="http://yoursite.com/cacti/"/>



<script type="text/javascript" id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>Linux监控——cacti | 胖勇の小窝</title>
  









  <noscript>
  <style type="text/css">
    .use-motion .motion-element,
    .use-motion .brand,
    .use-motion .menu-item,
    .sidebar-inner,
    .use-motion .post-block,
    .use-motion .pagination,
    .use-motion .comments,
    .use-motion .post-header,
    .use-motion .post-body,
    .use-motion .collection-title { opacity: initial; }

    .use-motion .logo,
    .use-motion .site-title,
    .use-motion .site-subtitle {
      opacity: initial;
      top: initial;
    }

    .use-motion {
      .logo-line-before i { left: initial; }
      .logo-line-after i { right: initial; }
    }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">胖勇の小窝</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>




<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
          
  
  <li class="menu-item menu-item-home">
    <a href="/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-home"></i> <br />首页</a>
</li>

      
        
        
          
  
  <li class="menu-item menu-item-about">
    <a href="/about/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-user"></i> <br />关于</a>
</li>

      
        
        
          
  
  <li class="menu-item menu-item-tags">
    <a href="/tags/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />标签</a>
</li>

      
        
        
          
  
  <li class="menu-item menu-item-categories">
    <a href="/categories/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-th"></i> <br />分类</a>
</li>

      
        
        
          
  
  <li class="menu-item menu-item-archives">
    <a href="/archives/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />归档</a>
</li>

      

      
      
    </ul>
  

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
            

          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/cacti/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="LiuGaoyong">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="http://p7b7this6.bkt.clouddn.com/18-6-3/47273717.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="胖勇の小窝">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Linux监控——cacti
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            
                
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-04-27T18:09:19+08:00">2018-04-27</time>
            

            
            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/Liunx运维/" itemprop="url" rel="index"><span itemprop="name">Liunx运维</span></a></span>

                
                
                  ， 
                
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/Liunx运维/系统监控/" itemprop="url" rel="index"><span itemprop="name">系统监控</span></a></span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <font size="4" face="黑体">更新日志</font> 

<blockquote>
<p>2018-04-27: 创建<br>  2018-04-28: 添加cacti安装<br>  2018-04-28: 添加图片</p>
</blockquote>
<hr>
<h2 id="cacti-的安装"><a href="#cacti-的安装" class="headerlink" title="cacti 的安装"></a>cacti 的安装</h2><h3 id="预安装环境"><a href="#预安装环境" class="headerlink" title="预安装环境"></a>预安装环境</h3><table>
<thead>
<tr>
<th>属性</th>
<th>客户端</th>
<th>被监控端</th>
<th>cacti服务器</th>
</tr>
</thead>
<tbody>
<tr>
<td>系统</td>
<td>Windows 10 Chrome</td>
<td>CentOS 6.9</td>
<td>Apache虚拟主机</td>
</tr>
<tr>
<td>IP/MASK</td>
<td>192.168.1.119/24</td>
<td>192.168.1.125/24</td>
<td>192.168.1.200/24 </td>
</tr>
<tr>
<td>GATEWAY</td>
<td>192.168.1.1</td>
<td>192.168.1.1</td>
<td>192.168.1.1</td>
</tr>
<tr>
<td>DNS</td>
<td>59.49.49.49</td>
<td>59.49.49.49</td>
<td>59.49.49.49         </td>
</tr>
</tbody>
</table>
<blockquote>
<p>LAMP环境<br>防火墙配置<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">vim /etc/sysconfig/iptables</span><br><span class="line"><span class="comment"># 添加以下内容到22端口之后</span></span><br><span class="line">-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT</span><br><span class="line">-A INPUT -m state --state NEW -m tcp -p tcp --dport 161 -j ACCEPT</span><br><span class="line"></span><br><span class="line"><span class="comment"># 重启防火墙</span></span><br><span class="line">/etc/init.d/iptables restart  </span><br><span class="line"><span class="comment">#service iptables restart</span></span><br></pre></td></tr></table></figure></p>
</blockquote>
<h3 id="安装rrdtool、net-snmp以及相关依赖包"><a href="#安装rrdtool、net-snmp以及相关依赖包" class="headerlink" title="安装rrdtool、net-snmp以及相关依赖包"></a>安装rrdtool、net-snmp以及相关依赖包</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">yum install rrdtool net-snmp rrdtool-devel net-snmp-devel \</span><br><span class="line">            net-snmp-utils net-snmp-python net-snmp-perl \ </span><br><span class="line">            lm_sensors-devel file-devel rpm-devel file intltool \</span><br><span class="line">            libart_lgpl libart_lgpl-devel elfutils pango-devel* \ </span><br><span class="line">            cairo-devel* mysql-devel Mod_auth_mysql php-mysql \</span><br><span class="line">            cairo dejavu-fonts-common.noarch \</span><br><span class="line">            dejavu-lgc-sans-mono-fonts.noarch dejavu-sans-mono-fonts.noarch \</span><br><span class="line">            fontpackages-filesystem.noarch libXft libXrender libthai pango \</span><br><span class="line">            pixman perl-rrdtool net-snmp net-snmp-utils tcp_wrappers-devel</span><br></pre></td></tr></table></figure>
<h3 id="下载安装cacti"><a href="#下载安装cacti" class="headerlink" title="下载安装cacti"></a>下载安装cacti</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">wget http://www.cacti.net/downloads/cacti-0.8.8f.tar.gz</span><br><span class="line">tar zxvf cacti-0.8.8f.tar.gz</span><br><span class="line">mv cacti-0.8.8f /usr/<span class="built_in">local</span></span><br><span class="line">ln -s /usr/<span class="built_in">local</span>/cacti-0.8.8f/ /var/www/html/cacti</span><br></pre></td></tr></table></figure>
<h3 id="配置cacti的MySQL数据库"><a href="#配置cacti的MySQL数据库" class="headerlink" title="配置cacti的MySQL数据库"></a>配置cacti的MySQL数据库</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 输入密码进入MySQL控制台</span></span><br><span class="line">mysql -u root -p </span><br><span class="line"></span><br><span class="line"><span class="comment"># MySQL控制台操作</span></span><br><span class="line"><span class="comment">#创建数据库cactidb</span></span><br><span class="line">Create DATABASE IF NOT EXISTS cactidb default charset utf8 COLLATE utf8_general_ci; </span><br><span class="line"><span class="comment">#创建数据库用户cactiuser 密码 123456</span></span><br><span class="line">insert into mysql.user(Host,User,Password) values(<span class="string">'localhost'</span>,<span class="string">'cactiuser'</span>,password(<span class="string">'123456'</span>)); </span><br><span class="line"><span class="comment">#授权用户cactiuser对数据库cactidb完全访问</span></span><br><span class="line">grant all on cactidb.* to <span class="string">'cactiuser'</span>@<span class="string">'%'</span> identified by <span class="string">'123456'</span> with grant option;</span><br><span class="line"><span class="comment">#刷新系统授权表，使设置生效 </span></span><br><span class="line">flush privileges; </span><br><span class="line">use cactidb</span><br><span class="line"><span class="comment">#导入cacti数据库文件</span></span><br><span class="line"><span class="built_in">source</span> /usr/<span class="built_in">local</span>/nginx/html/cacti.sql </span><br><span class="line"><span class="built_in">exit</span>; </span><br><span class="line"></span><br><span class="line"></span><br><span class="line">vi /usr/<span class="built_in">local</span>/nginx/html/include/config.php <span class="comment">#配置数据库连接</span></span><br><span class="line"><span class="variable">$database_type</span> = <span class="string">"mysql"</span>;</span><br><span class="line"><span class="variable">$database_default</span> = <span class="string">"cactidb"</span>; <span class="comment">#数据库名称</span></span><br><span class="line"><span class="variable">$database_hostname</span> = <span class="string">"localhost"</span>; <span class="comment">#主机名称，默认即可</span></span><br><span class="line"><span class="variable">$database_username</span> = <span class="string">"cactiuser"</span>; <span class="comment">#数据库用户名</span></span><br><span class="line"><span class="variable">$database_password</span> = <span class="string">"123456"</span>; <span class="comment">#数据库密码</span></span><br><span class="line"><span class="variable">$database_port</span> = <span class="string">"3306"</span>; <span class="comment">#MySQL数据库默认连接端口</span></span><br><span class="line"><span class="variable">$database_ssl</span> = <span class="literal">false</span>;</span><br></pre></td></tr></table></figure>
<h3 id="客户端浏览器配置cacti"><a href="#客户端浏览器配置cacti" class="headerlink" title="客户端浏览器配置cacti"></a>客户端浏览器配置cacti</h3><blockquote>
<p>浏览器输入 <a href="http://192.168.1.125/cacti" target="_blank" rel="noopener">http://192.168.1.125/cacti</a> ，一路next，最终显示以下内容：<br> <img src="http://p7b7this6.bkt.clouddn.com/18-5-6/22155900.jpg" alt=""><br> 首次登陆必须修改密码，而后：<br> <img src="http://p7b7this6.bkt.clouddn.com/18-5-6/30607701.jpg" alt=""></p>
</blockquote>
<h3 id="配置计划任务"><a href="#配置计划任务" class="headerlink" title="配置计划任务"></a>配置计划任务</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#安装计划任务软件包</span></span><br><span class="line">yum install -y vixie-cron </span><br><span class="line"><span class="comment">#设为开机启动</span></span><br><span class="line">chkconfig crond on </span><br><span class="line"></span><br><span class="line"><span class="comment">#设置每隔5分钟Cacti采集一次数据</span></span><br><span class="line">crontab -e  </span><br><span class="line">*/5 * * * * php   /usr/<span class="built_in">local</span>/nginx/html/poller.php  &amp;&gt; /dev/null</span><br><span class="line"></span><br><span class="line"><span class="comment">#启动crond</span></span><br><span class="line">service crond start </span><br><span class="line"><span class="comment">#手动刷新数据</span></span><br><span class="line">/usr/bin/php  /usr/<span class="built_in">local</span>/nginx/html/poller.php</span><br></pre></td></tr></table></figure>
<h2 id="待添加"><a href="#待添加" class="headerlink" title="待添加"></a>待添加</h2>
      
    </div>

    

    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Linux/" rel="tag"># Linux</a>
          
            <a href="/tags/cacti/" rel="tag"># cacti</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/lamp/" rel="next" title="Linux服务——web（LAMP环境搭建）">
                <i class="fa fa-chevron-left"></i> Linux服务——web（LAMP环境搭建）
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/$ httpd/" rel="prev" title="Linux服务——web（LAMP之httpd）">
                Linux服务——web（LAMP之httpd） <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="http://p7b7this6.bkt.clouddn.com/18-6-3/47273717.jpg"
                alt="LiuGaoyong" />
            
              <p class="site-author-name" itemprop="name">LiuGaoyong</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">22</span>
                    <span class="site-state-item-name">日志</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">15</span>
                    <span class="site-state-item-name">分类</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">26</span>
                    <span class="site-state-item-name">标签</span>
                  </a>
                </div>
              
            </nav>
          

          

          
            <div class="links-of-author motion-element">
              
                <span class="links-of-author-item">
                  <a href="https://github.com/LiuGaoyong" target="_blank" title="GitHub"><i class="fa fa-fw fa-github"></i>GitHub</a>
                  
                </span>
              
                <span class="links-of-author-item">
                  <a href="http://weibo.com/LiuGaoyongYoung" target="_blank" title="Weibo"><i class="fa fa-fw fa-weibo"></i>Weibo</a>
                  
                </span>
              
                <span class="links-of-author-item">
                  <a href="https://twitter.com/liugaoyong" target="_blank" title="Twitter"><i class="fa fa-fw fa-twitter"></i>Twitter</a>
                  
                </span>
              
                <span class="links-of-author-item">
                  <a href="https://www.facebook.com/liugaoyong" target="_blank" title="FaceBook"><i class="fa fa-fw fa-facebook"></i>FaceBook</a>
                  
                </span>
              
            </div>
          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-block">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                Links
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.github.com" title="Github 官网" target="_blank">Github 官网</a>
                  </li>
                
              </ul>
            </div>
          

          
            
          
          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#cacti-的安装"><span class="nav-number">1.</span> <span class="nav-text">cacti 的安装</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#预安装环境"><span class="nav-number">1.1.</span> <span class="nav-text">预安装环境</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#安装rrdtool、net-snmp以及相关依赖包"><span class="nav-number">1.2.</span> <span class="nav-text">安装rrdtool、net-snmp以及相关依赖包</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#下载安装cacti"><span class="nav-number">1.3.</span> <span class="nav-text">下载安装cacti</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#配置cacti的MySQL数据库"><span class="nav-number">1.4.</span> <span class="nav-text">配置cacti的MySQL数据库</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#客户端浏览器配置cacti"><span class="nav-number">1.5.</span> <span class="nav-text">客户端浏览器配置cacti</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#配置计划任务"><span class="nav-number">1.6.</span> <span class="nav-text">配置计划任务</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#待添加"><span class="nav-number">2.</span> <span class="nav-text">待添加</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">LiuGaoyong</span>

  

  
</div>




  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动 v3.7.1</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/theme-next/hexo-theme-next">NexT.Gemini</a> v6.1.0</div>




        








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>


























  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=6.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=6.1.0"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=6.1.0"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=6.1.0"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=6.1.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=6.1.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=6.1.0"></script>



  



	





  





  










  





  

  

  

  

  
  

  

  

  

  

</body>
</html>
